package com.example.servicebwic.controller;

import com.example.servicebwic.entity.Client;
import com.example.servicebwic.service.ClientService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 86150
 * @Date: 2024/4/9
 * @Description: com.example.clientbwic.service
 */
@RestController
public class ClientController {
    @Resource
    ClientService clientService;
    @GetMapping("/getClient/{id}")
    public Client getClient(@PathVariable Long id) {
        return clientService.getClient(id);
    }
}
